<template>
  <div class="header-box bars bars-nav">
    <a
      class="buttons buttons-link buttons-nav pull-lefts goBacks"
      href="javascript:window.history.go(-1);"
    >
      <span class="iconfont icon-sort_desc"></span>
    </a>
    <h1 class="title title-white unBorder">{{title}}</h1>
  </div>
</template>

<script>
import "@/css/main.css";
import "@/css/login/icon/iconfont.css";
export default {
  props: {
    title: {
      type: String,
      default: "标题"
    },
    isBtn: {
      type: Boolean,
      default: true
    }
  }
};
</script>

<style scoped>
.header-box {
  width: 100%;
  height: 0.77rem;
  margin-bottom: 0.1rem;
}

.bars {
  background-color: #fff;
  box-shadow: 0 -0.07rem 0.07rem rgba(0, 0, 0, 0.01);
  right: 0;
  left: 0;
  z-index: 10;
  height: 0.8rem;
  padding-right: 0.18rem;
  padding-left: 0.18rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.bars-nav {
  top: 0;
}

.bars .buttons-nav.pull-lefts {
  margin-left: -0.09rem;
}

.bars .buttons.pull-lefts {
  margin-right: 0.18rem;
}

.bars .buttons-link {
  top: 0;
  padding: 0;
  font-size: 0.28rem;
  line-height: 0.8rem;
  height: 0.8rem;
  color: #0894ec;
  border: 0;
}

.bars .buttons {
  position: relative;
  z-index: 20;
  font-weight: 400;
}

.goBacks,
.back.buttons-link {
  color: #222 !important;
  border: 0;
}

.buttons {
  border: 1px solid #0894ec;
  color: #0894ec;
  text-decoration: none;
  text-align: center;
  display: block;
  border-radius: 0.09rem;
  line-height: 0.45rem;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  background: 0;
  padding: 0 0.18rem;
  margin: 0;
  height: 0.48rem;
  white-space: nowrap;
  position: relative;
  text-overflow: ellipsis;
  font-size: 0.25rem;
  font-family: inherit;
  cursor: pointer;
}

.pull-lefts {
  float: left;
}

.bars .buttons-nav.pull-lefts.goBacks > .iconfont {
  font-size: 30px;
}

.title-white {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.unBorder {
  border: none !important;
}

.title {
  position: absolute;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 -0.18rem;
  font-size: 0.3rem;
  font-weight: 500;
  line-height: 0.8rem;
  color: #3d4145;
  text-align: center;
  white-space: nowrap;
}
</style>